/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.crp.complience.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.crp.complience.model.AnimalType;
import za.ac.cput.crp.complience.model.Impl.Dog;
import za.ac.cput.crp.complience.model.Impl.Eagle;
import za.ac.cput.crp.complience.service.Animal;

/**
 *
 * @author 210226978
 */
@Configurable
public class AppConfig {
    @Bean(name = "dog")
    public Animal dog(){
        return new Dog();
    }
    
    @Bean(name = "eagle")
    public  Animal eagle(){
        return new Eagle();
    }       
}
